package com.tdkj.model.risevalue;

import java.sql.Timestamp;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.tdkj.model.base.BaseEntity;
import com.tdkj.model.user.BeanUser;

/**
 * XnkySubsciptionmodel entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "risevalue_plate_sms_subscription")
public class BeanPlateSMSSubscription extends BaseEntity implements java.io.Serializable {

	private BeanPlateSMSCustom custom;
	
	private Timestamp buyTime;
	
	private BeanUser user;

	// Constructors

	/** default constructor */
	public BeanPlateSMSSubscription() {
	}


	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "custom_id")
	public BeanPlateSMSCustom getCustom() {
		return this.custom;
	}

	public void setCustom(BeanPlateSMSCustom custom) {
		this.custom = custom;
	}


	/**
	 * @return the buyTime
	 */
	public Timestamp getBuyTime() {
		return buyTime;
	}


	/**
	 * @param buyTime the buyTime to set
	 */
	public void setBuyTime(Timestamp buyTime) {
		this.buyTime = buyTime;
	}


	/**
	 * @return the user
	 */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "user_id")
	public BeanUser getUser() {
		return user;
	}


	/**
	 * @param user the user to set
	 */
	public void setUser(BeanUser user) {
		this.user = user;
	}
	
	


}